package com.nidu.demo.menu.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 菜单更新命令
 *
 * @author auto
 */
@Data
@Schema(description = "菜单更新命令")
@EqualsAndHashCode(callSuper = true)
public class MenuUpdateCmd extends MenuAddCmd {

    /**
     * 菜单ID
     */
    @NotNull(message = "菜单ID不能为空")
    @Schema(description = "菜单ID", example = "1")
    private Long id;

} 